package com.atguigu.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller //===servlet
public class HelloController {
    /*
    * 匹配当前请求的路由
    * */
    @RequestMapping("/hello")
    public String hello(){
        System.out.println("第一个SpringMVC小程序");
        //响应 /:代表web根目录
        //return是转发
        return "ok";
    }
}
